Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bugfix] Add toast message for getting started / Fix Nav Bug for Traces #1977

Merged
merged 1 commit into from
Jul 23, 2024

Conversation

TackAdam
Copy link
Collaborator

Description

Adds a toast message and error to getting started asset creation.

Screen.Recording.2024-07-23.at.2.33.21.PM.mov

Fixes a bug in trace analytics while the new nav changes are active concerning breadcrumbs.
Before Fix:
https://github.com/user-attachments/assets/e503910c-b547-4031-a6e9-90b09275cc68
After fix:
https://github.com/user-attachments/assets/1ba8af89-be4a-4493-b118-933cf19a0470

Issues Resolved

[List any issues this PR will resolve]

Check List

  • New functionality includes testing.
    • All tests pass, including unit test, integration test and doctest
  • New functionality has been documented.
    • New functionality has javadoc added
    • New functionality has user manual doc added
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Comment on lines +82 to +87
if (isNavGroupEnabled) {
chrome.setBreadcrumbs([...childBreadcrumbs]);
} else {
chrome.setBreadcrumbs([parentBreadcrumb, ...childBreadcrumbs]);
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we try using

useEffect(() => {
       setNavBreadCrumbs([], [parentBreadcrumb, ...childBreadcrumbs]);
    }, [isNavGroupEnabled])

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does not work unfortunately.
Screenshot 2024-07-23 at 2 59 58 PM

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In that case, can we please track this in an issue. Cause ideally we would want to keep functions re-used across components.

@ps48 ps48 added bug Something isn't working backport 2.x backport 2.16 labels Jul 23, 2024
@TackAdam TackAdam changed the title [Bugfix] Add toast message for getting started [Bugfix] Add toast message for getting started / Fix Nav Bug for Traces Jul 23, 2024
@ps48 ps48 merged commit 8d4ba26 into opensearch-project:main Jul 23, 2024
13 of 26 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jul 23, 2024
Signed-off-by: Adam Tackett <[email protected]>
Co-authored-by: Adam Tackett <[email protected]>
(cherry picked from commit 8d4ba26)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jul 23, 2024
Signed-off-by: Adam Tackett <[email protected]>
Co-authored-by: Adam Tackett <[email protected]>
(cherry picked from commit 8d4ba26)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
ps48 pushed a commit that referenced this pull request Jul 23, 2024
(cherry picked from commit 8d4ba26)

Signed-off-by: Adam Tackett <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Adam Tackett <[email protected]>
ps48 pushed a commit that referenced this pull request Jul 23, 2024
(cherry picked from commit 8d4ba26)

Signed-off-by: Adam Tackett <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Adam Tackett <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants